package com.medusa.aps.business.modules.modeling.mp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.medusa.aps.business.model.pagination.Page;
import com.medusa.aps.business.modules.modeling.model.output.TechnologicalProcessVO;
import com.medusa.aps.business.modules.modeling.mp.entity.TechnologicalProcess;
import com.medusa.aps.business.modules.modeling.mp.mapper.TechnologicalProcessMapper;
import com.medusa.aps.business.modules.modeling.mp.service.TechnologicalProcessService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工艺工序服务实现类
 *
 * @author yuxh
 * @since 2023-08-14 17:37:52
 */
@Service("technologicalProcessService")
public class TechnologicalProcessServiceImpl extends ServiceImpl<TechnologicalProcessMapper, TechnologicalProcess> implements TechnologicalProcessService {

    @Override
    public List<TechnologicalProcessVO> getTechnologicalProcess(Integer processId) {
        return baseMapper.getTechnologicalProcess(processId);
    }

    @Override
    public Page<TechnologicalProcessVO> getTechnologicalProcessPage(Page<TechnologicalProcessVO> page, String materialCode) {
        return baseMapper.getTechnologicalProcessPage(page, materialCode);
    }
}

